<template>
  <div class="pageCard">
    <el-carousel indicator-position="outside">
      <el-carousel-item v-for="item in list" :key="item">
        <h3>
          <img :src="require('@/assets/img/' + item)" alt="" />
        </h3>
      </el-carousel-item>
    </el-carousel>
  </div>
</template>

<script>
export default {
  name: 'bannerPage',
  data() {
    return {
      list: [
        'banner1.jpg',
        'banner2.jpg',
        'banner3.jpg',
        'banner4.jpg',
        'banner5.jpg',
        'banner6.jpg',
        'banner7.jpg',
        'banner8.jpg',
        'banner9.jpg',
        'banner10.jpg',
        'banner11.jpg',
        'banner12.jpg',
        'banner13.jpg',
        'banner14.jpg',
      ],
    }
  },
}
</script>

<style lang="scss" scoped>
.pageCard {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
  overflow: hidden;
  background-color: rgba($color: #ffffff, $alpha: 0.3);

  .el-carousel {
    width: 100%;
    height: 100%;
  }
  .el-carousel ::v-deep .el-carousel__container {
    height: 95%;
  }
  .el-carousel__item h3 {
    color: #475669;
    font-size: 18px;
    //   opacity: 0.75;
    //   line-height: 300px;
    margin: 0;
  }

  .el-carousel__item:nth-child(2n) {
    background-color: #99a9bf;
  }

  .el-carousel__item:nth-child(2n + 1) {
    background-color: #d3dce6;
  }
  h3 {
    img {
      width: 100%;
      height: 100%;
    }
  }
}
</style>
